package org.fixies.spreadsheet.converter;

import org.fixies.spreadsheet.Cell;
import org.fixies.spreadsheet.Unit;

import java.util.Map;


public class MapConverter implements DataSetConverter<Map<String, Cell>> {

    private ListMapConverter delegate = new ListMapConverter();

    public void setDataSet(Unit unit) {
        delegate.setDataSet(unit);
    }

    public Map<String, Cell> convert() {
        return delegate.convert().get(0);
    }
}
